//
//  PushViewController.m
//  Zhihuijinfu
//
//  Created by 王笛 on 2016/11/29.
//  Copyright © 2016年 王笛. All rights reserved.
//

#import "PushViewController.h"
#import "MMDrawerController.h"
#import "UIViewController+MMDrawerController.h"

@interface PushViewController ()

@end

@implementation PushViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    [self.view setBackgroundColor:[UIColor greenColor]];
    UIButton * back = [UIButton buttonWithType:UIButtonTypeCustom];
    [back setTitle:@"左侧菜单" forState:UIControlStateNormal];
    [back addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    back.frame= (CGRect){{200, 200},{50, 50}} ;
    [self.view addSubview:back];
}

-(void)back
{
    [self.mm_drawerController openDrawerSide:MMDrawerSideLeft
                                    animated:YES
                                  completion:^(BOOL finished) {
                                      
                                  }];
}


@end
